Part Number Hot Search : 
ONTROL SF2037C BSS145 PPF430E N25F80 LTC34 D23C1 CLS62B
Product Description
Full Text Search
 

To Download CS4222 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 CS4222
20-Bit Stereo Audio Codec with Volume Control
Features Description
The CS4222 is a highly integrated, high performance, 20-bit, audio codec providing stereo analog-to-digital and stereo digital-to-analog converters using delta-sigma conversion techniques. The device operates from a single +5 V power supply, and features low power consumption. Selectable de-emphasis filter for 32, 44.1, and 48 kHz sample rates is also included. The CS4222 also includes an analog volume control capable of 113.5 dB attenuation in 0.5 dB resolution. The analog volume control architecture preserves dynamic range during attenuation. Volume control changes are implemented using a "soft" ramping or zero crossing technique. Applications include reverb processors, musical instruments, DAT, and multitrack recorders. The CS4222 is packaged in a 28-pin plastic SSOP. ORDERING INFORMATION CS4222-KS -10 to +70 C 28-pin SSOP CDB4222 Evaluation Board
I
l 99 dB 20-bit A/D Converters l 99 dB 20-bit D/A Converters l 110 dB DAC Signal-to-Noise Ratio (EIAJ) l Analog Volume Control l Soft Mute Capability l Differential Inputs/Outputs l On-chip Anti-aliasing and Output Smoothing
Filters l De-emphasis for 32, 44.1 and 48 kHz l Stand-Alone or Control Port Mode l Single +5 V power supply
- 0.5 dB Step Resolution - 113.5 dB Attenuation
SCL/CCLK SDA/CDIN
AD0/CS
SMUTE
MCLK
VD
VA
RST DEM1 DEM0
Control Port
Digital Filters with De-Emphasis
LRCK SCLK SDIN SDOUT
Serial Audio Data Interface
Analog Low Pass and Output Stage
Left DAC Right DAC Left ADC Right ADC
Volume Control Volume Control
AOUTL+ AOUTLAOUTR+ AOUTRAINLAINL+ AINRAINR+
Digital Filters
DGND
AGND
Preliminary Product Information
Cirrus Logic, Inc. Crystal Semiconductor Products Division P.O. Box 17847, Austin, Texas 78760 (512) 445 7222 FAX: (512) 445 7581 http://www.crystal.com
This document contains information for a new product. Cirrus Logic reserves the right to modify this product without notice.
Copyright (c) Cirrus Logic, Inc. 1997 (All Rights Reserved)
JAN `97 DS236PP3 1
CS4222
ANALOG CHARACTERISTICS ( TA = 25C; VA, VD = +5V; Full Scale Input Sine wave, 997 Hz; Fs = 48 kHz; Measurement Bandwidth is 20 Hz to 20 kHz; Local components as shown in "Recommended Connection Diagram"; SPI mode, Format 0, unless otherwise specified.)
Parameter Symbol Min THD (A-weighted): (unweighted): -1 dB (Note 1) (1 kHz) (with High Pass Filter) (HPF defeated with CAL) THD+N TBD TBD 1.9 10 (Note 2) (Note 2) (Note 3) (Note 4) tgd tgd (Note 2) (Note 2) 0 30 80 Typ 0.003 99 96 -90 90 0.1 TBD 2.0 100 2.3 15/Fs 3.7 20 10 Max 20 TBD 0 2.1 15 21.8 0.01 6114 0 Units Bits % dB dB dB dB dB LSB LSB Vrms ppm/C k pF V kHz dB kHz dB s s Hz Hz Degree
Analog Input Characteristics
ADC Resolution Total Harmonic Distortion Dynamic Range Total Harmonic Distortion + Noise Interchannel Isolation Interchannel Gain Mismatch Offset Error
Full Scale Input Voltage (Differential) Gain Drift Input Resistance Input Capacitance Common Mode Input Voltage
A/D Decimation Filter Characteristics
Passband Passband Ripple Stopband Stopband Attenuation Group Delay (Fs = Output Sample Rate) Group Delay Variation vs. Frequency
High Pass Filter Characteristics
Frequency Response: Phase Deviation -3 dB -0.1 dB @ 20 Hz
Passband Ripple 0 dB Notes: 1. Referenced to typical full-scale differential input voltage (2 Vrms) 2. Filter characteristics scale with output sample rate. For output sample rates, Fs, other than 48 kHz, the 0.01 dB passband edge is 0.4535xFs and the stopband edge is 0.625xFs. 3. The analog modulator samples the input at 6.144 MHz for an Fs equal to 48 kHz. There is no rejection of input signals which are multiples of the sampling frequency ( n x 6.144 MHz 21.8 kHz where n = 0,1,2,3...). 4. Group delay for Fs = 48 kHz, tgd = 15/48 kHz = 312s * Parameter definitions are given at the end of this data sheet. Specifications are subject to change without notice.
2
DS236PP3
CS4222
ANALOG CHARACTERISTICS (Continued)
Parameter Symbol Min Typ Max Units
Analog Output Characteristics - Minimum Attenuation, 10 k, 100 pF load; unless otherwise specified.
DAC Resolution Signal-to-Noise, Idle-Channel Noise Dynamic Range Total Harmonic Distortion Total Harmonic Distortion + Noise Interchannel Isolation Interchannel Gain Mismatch Attenuation Step Size Programmable Output Attenuation Span Differential Offset Voltage Common Mode Output Voltage Full Scale Output Voltage Gain Drift Out-of-Band Energy Analog Output Load (Fs/2 to 2Fs) Resistance: Capacitance: 10 Hz to 20 kHz (All Outputs) (1kHz) (DAC muted, A-weighted) (DAC not muted, A-weighted) (DAC not muted, unweighted) THD THD+N TBD TBD TBD 0.35 110 1.9 10 (Notes 5,6) (Note 6) (Notes 5,6) (Notes 7) tgd VA VD Total Power Down 0 26.2 70 110 99 96 0.003 -88 90 0.1 0.5 113.5 10 2.3 2.0 100 -60 0.1 0.5 16 / Fs 30 20 0.2 20 TBD 0.65 2.1 100 21.8 0.01 TBD TBD Bits dB dB dB % dB dB dB dB dB mV V Vrms ppm/C dBFS k pF dB Degrees kHz dB kHz dB s mA mA mA
Combined Digital and Analog Filter Characteristics
Frequency Response Deviation from Linear Phase Passband: to 0.01 dB corner Passband Ripple Stopband Stopband Attenuation Group Delay (Fs = Input Word Rate)
Power Supply
Power Supply Current
50 dB Power Supply Rejection Ratio (1 kHz, 10 mVrms) Notes: 5. The passband and stopband edges scale with frequency. For input word rates, Fs, other than 48 kHz, the 0.01 dB passband edge is 0.4535xFs and the stopband edge is 0.5465xFs. 6. Digital filter characteristics. 7. Measurement bandwidth is 10Hz to 3Fs.
Specifications are subject to change without notice
DS236PP3
3
CS4222
SWITCHING CHARACTERISTICS (TA = 25C; VA, VD = +5V 5%, outputs loaded with 30pF)
Parameter Audio ADC's & DAC's Sample Rate MCLK Frequency MCLK Pulse Width High (MCLK = 256, 384, or 512 Fs) MCLK = 512 Fs MCLK = 384 Fs MCLK = 256 Fs MCLK = 512 Fs MCLK = 384 Fs MCLK = 256 Fs (Note 8) tdpd tlrpd (DSCK=0) (DSCK=0) tds tdh tsckw tsckh tsckl (DSCK=0) tlrckd Symbol Fs Min 4 1.024 10 21 31 10 21 31 10 1
(128) Fs
Typ 500 -
Max 50 26 1
(384)Fs + 20
Units kHz MHz ns ns ns ns ns ns ps RMS ms ns ns ns ns ns ns ns ns
MCLK Pulse Width Low
MCLK Jitter Tolerance RST Low Time SCLK Falling edge to SDOUT output valid (DSCK=0) LRCK edge to MSB valid SDIN Setup Time Before SCLK Rising Edge SDIN Hold Time After SCLK Rising Edge SCLK Period SCLK High Time SCLK Low Time SCLK Rising to LRCK Edge
25 25 25 -
40 40 20
LRCK Edge to SCLK Rising (DSCK=0) tlrcks 40 ns Notes: 8. After powering up the CS4222, PDN should be held low for 10 ms to allow the power supply to settle.
LRCK
t lrckd SCLK* t sckw SDIN t lrpd t ds SDOUT t dh MSB t dpd MSB-1 t lrcks t sckh t sckl
*SCLK shown for DSCK = 0, SCLK inverted for DSCK = 1.
Serial Audio Port Data I/O timing
4
DS236PP3
CS4222
SWITCHING CHARACTERISTICS - CONTROL PORT
(TA = 25C VD, VA = 5V5%; Inputs: logic 0 = DGND, logic 1 = VD, CL = 30pF) Parameter
2
Symbol
Min
Max 6 100 100
Units MHz ns ns s ns ns ns ns ns ns ns
SPI Mode (SPI/I C = 0) CCLK Clock Frequency fsck RST rising edge to CS falling tsrs 500 CCLK edge to CS falling (Note 9) tspi 500 CS High Time Between Transmissions tcsh 1.0 CS Falling to CCLK Edge tcss 20 CCLK Low Time tscl 66 CCLK High Time tsch 66 CDIN to CCLK Rising Setup Time tdsu 40 CCLK Rising to DATA Hold Time (Note 10) tdh 15 Rise Time of CCLK and CDIN (Note 11) tr2 Fall Time of CCLK and CDIN (Note 11) tf2 Notes: 9. tspi only needed before first falling edge of CS after RST rising edge. tspi = 0 at all other times. 10. Data must be held for sufficient time to bridge the transition time of CCLK. 11. For FSCK < 1 MHz
RST
t srs
CS t spi t css CCLK t r2
CDIN
t scl
t sch
t csh
t f2
t dsu t dh
DS236PP3
5
CS4222
SWITCHING CHARACTERISTICS - CONTROL PORT
(TA = 25C; VD, VA = 5V5%; Inputs: logic 0 = DGND, logic 1 = VD, CL = 30pF) Parameter I C Mode (SPI/I C = 1) (Note 12) SCL Clock Frequency RST Rising Edge to Start Bus Free Time Between Transmissions Start Condition Hold Time (prior to first clock pulse) Clock Low Time Clock High Time Setup Time for Repeated Start Condition SDA Hold Time from SCL Falling (Note 13) SDA Setup Time to SCL Rising Rise Time of Both SDA and SCL Lines Fall Time of Both SDA and SCL Lines Setup Time for Stop Condition
2(R) 2
Symbol fscl tirs tbuf thdst tlow thigh tsust thdd tsud tr tf tsusp
Min 500 4.7 4.0 4.7 4.0 4.7 0 250 4.7
Max 100 1 300
Units kHz ns s s s s s s ns s ns s
Notes: 12. Use of the I2C(R) bus interface requires a license from Philips. I2C(R) is a registered trademark of Philips Semiconductors. 13. Data must be held for sufficient time to bridge the 300ns transition time of SCL.
RST t irs Stop SDA t buf SCL t t t sud t sust tr t hdst t high t hdst tf t susp
Start
Repeated Start
Stop
low
hdd
6
DS236PP3
CS4222
ABSOLUTE MAXIMUM RATINGS (AGND, DGND = 0V, all voltages with respect to 0V.)
Parameter Power Supplies Input Current Analog Input Voltage Digital Input Voltage Ambient Temperature Digital Analog (Note 14) (Note 15) (Note 15) (Power Applied) Symbol VD VA Min -0.3 -0.3 -0.7 -0.7 -55 Typ Max 6.0 6.0 10 VA+0.7 VD+0.7 +125 Units V V mA V V C C
Storage Temperature -65 +150 Warning: Operation at or beyond these limits may result in permanent damage to the device. Normal operation is not guaranteed at these extremes. Note: 14. Any pin except supplies. Transient currents of up to 100mA on the analog input pins will not cause SCR latch-up. 15. The maximum over or under voltage is limited by the input current.
RECOMMENDED OPERATING CONDITIONS (AGND, DGND = 0V, all voltages with respect
to 0V.) Parameter Power Supplies Digital Analog VA - VD Operating Ambient Temperature TA Symbol VD VA Min 4.75 4.75 -10 Typ 5.0 5.0 25 Max 5.25 5.25 0.4 70 Units V V V C
DIGITAL CHARACTERISTICS (TA = 25
Parameter High-level Input Voltage Low-level Input Voltage High-level Output Voltage at I0 = -2.0 mA Low-level Output Voltage at I0 = 2.0 mA Input Leakage Current Output Leakage Current
C; VA, VD = 5V 5%) Symbol VIH VIL VOH VOL Min 2.8 -0.3 VD-1.0 Typ Max VD+0.3 1.0 0.4 10 10 Units V V V V A A
(Digital Inputs) (High Impedance Digital Outputs)
DS236PP3
7
CS4222
Ferrite Bead +5V Supply + 1 F 0.1 F
2 0.1 F + 1 F
150
21 VA 20 AINL+ 2.2 nF 19 AINL-
6 VD AOUTL+ AOUTL25 26 Analog Filter
150 150
17
2.2 nF 150 16
AINR+
AOUTR+ AOUTR-
24 23
Analog Filter
CS4222
AINRDEM1
DEM0
18 13
Digital Audio Source
Microcontroller
10 11 12 27 2 1 14 15
SCL/CCLK SDA/CDIN AD0/CS RST SMUTE NC NC NC NC AGND 22
SDOUT SDIN
LRCK
8 9 4 5 3
Rs Rs Rs Rs Rs 1
Rs = 500 Rs 1 = 50 Audio DSP
SCLK MCLK DGND 7
Note: Pins 10,11, and 12 should be tied to DGND in stand-alone mode.
28
Figure 1. Recommended Connection Diagram (Also see recommended layout diagram, Figure 10)
8
DS236PP3
CS4222
FUNCTIONAL DESCRIPTION Overview The CS4222 has 2 channels of 20-bit analog-todigital conversion and 2 channels of 20-bit digital-to-analog conversion. All ADCs and DACs are delta-sigma converters. The DAC outputs have adjustable output attenuation implemented in 0.5 dB step resolution. The device also includes a soft mute function and digital de-emphasis for 32, 44.1, and 48 kHz. Digital audio data for the DACs and from the ADCs is communicated over separate serial ports. This allows concurrent writing to and reading from the device. Control for the functions available on the CS4222 are communicated over a serial microcontroller interface. Figure 1 shows the recommended connection diagram for the CS4222. The device can be operated with or without the control port interface. Additional functions are available when the control port interface is used as outlined in Table 1.
Stand-alone Control Port Volume control Adjustable Mute ramp rate Fixed Mute ramp rate Enable zero crossing detect Disabled Disable mute on zero input Enabled De-emphasis De-emphasis Mute DAC outputs Mute DAC outputs ADC Input Peak Level Detect 16, 18, 20 bit Interface 20 bit I2S Interface Individual ADC/DAC power Codec power down down Cal on command Cal on power-up High pass enable/disable High pass enabled Table 1. Control Port vs. Stand-alone
Analog Inputs Line Level Inputs AINR-, AINR+, AINL-, and AINL+ are the differential line level input pins (See Figure 1). Figure 2 shows an AC coupled optional input buffer which combines level shifting with singleended to differential conversion. Analog inputs must be DC coupled into the CS4222 with a 2.3V common mode input voltage. Any DC off-
Figure 2. Optional Line Input Buffer DS236PP3 9
CS4222
set at the input to the CS4222 will be removed by the internal high-pass filters. See Figure 3 for the differential input signal description. The ADC outputs may be muted (set to zero) by writing the ADMR and ADML bits, and the ADC can be independently powered down using the PDAD bit. ADMR, ADML, and PDAD are all located in the ADC control byte (#1). Input Level Monitoring The CS4222 includes independent Peak Input Level Monitoring for each channel. The analogto-digital converter continually monitors the peak digital signal for both channels, prior to the digital limiter, and records these values in the LVL2-0 (left channel) and LVR2-0 (right channel) bits in the Converter Status Report Byte (#6). These bits indicate whether the input level is clipping, -1 to -6 dB from full scale in 1 dB resolution, or below -6 dB from full scale. The LVL/LVR bits are "sticky" bits and are reset to zero when read. High Pass Filter The operational amplifiers in the input circuitry driving the CS4222 may generate a small DC offset into the A/D converter. The CS4222 includes a high pass filter after the decimator to remove any DC offset which could result in recording a DC level, possibly yielding "clicks" when switching between devices in a multichannel system. The characteristics of this first-order high pass filter are outlined below for Fs equal to 48 kHz. The filter response scales linearly with sample rate. The high pass filter may be defeated independently for the left and right channels by writing HPDR and HPDL in the ADC control byte (#1).
Frequency Response Phase Deviation Passband Ripple -3dB @ 3.7 Hz -0.1 dB @ 20 Hz 10 degrees @ 20 Hz None
Analog Outputs Line Level Outputs The CS4222 contains an on-chip buffer amplifier producing differential outputs capable of driving 10 k loads. Each output (AOUTL+, AOUTL-, AOUTR+, AOUTR-) will produce a nominal 2.83 Vpp (1 Vrms) output with a 2.3 volt common mode for a full scale digital input. This is equivalent to a 5.66 Vpp (2 Vrms) differential signal as shown in Figure 3. The recommended off-chip analog filter is either a 2nd order Butterworth or a 3rd order Butterworth, if greater out-of-band noise filtering is desired. The CS4222 DAC interpolation filter has been precompensated for an external 2nd or der Butterworth filter with a 3dB corner at Fs, or a 3rd order Butterworth filter with a 3dB corner at 0.75 Fs to provide a flat frequency response and linear phase over the passband (see Figure 4 for Fs = 48 kHz). If the recommended filter is not used, small frequency response magnitude and phase errors will occur. In addition to providing out-of-band noise attenuation, the output filters shown in Figure 4 provide differential to singleended conversion. The DACs can be powered down using the PDDA bit in the DAC control register (#2).
CS4222
(2.3 + 1.4)V
AIN+/AOUT+ 2.3V
(2.3 - 1.4)V (2.3 + 1.4)V AIN+/AOUT2.3V
(2.3 - 1.4)V
Full Scale Input level = (AIN+) - (AIN-)= 5.66 Vpp Full Scale Output level = (AOUT+) - (AOUT-)= 5.66 Vpp
Figure 3. Full Scale Input/Output Voltage
Table 2. High Pass Filter Characteristics 10 DS236PP3
CS4222
Figure 4.
Analog/Digital Volume Control - Control Port Mode Only The DAC outputs are each routed through an attenuator which is adjustable in 0.5 dB steps. Output attenuation is available through the Output Attenuator Data Bytes (#3 & #4). Level changes are implemented with an analog volume control until the residual output noise is equal to the noise floor in the mute state at which point volume changes are performed digitally. This technique is superior to purely digital volume control techniques as the noise is attenuated by the same amount as the signal, thus preserving dynamic range (see Figure 5). The CS4222 implements a "soft" volume control whereby level changes are achieved by ramping
DS236PP3
0 Amplitude (dB)
Analog Digital Signal
Noise
0
Attenuation (dB)
-113.5
Figure 5. Hybrid Analog/Digital Attenuation
from the current level to the new level in 0.5 dB steps. The default rate of volume change is 8 LRCK cycles for each 0.5 dB step (equivalent to 647 s at Fs = 48 kHz). The rate of volume
11
CS4222
change is adjustable to 4, 16, or 32 LRCK cycles with the RMP1/0 bits in the DAC control byte (#2). "Soft" volume control may be disabled through the SOFT bit in the DAC bit Control Byte (#2). When "soft" volume control is defeated, level changes step from the current level to the new level in a single step. The volume change takes effect on a zero crossing to minimize audible artifacts. If there is no zero crossing, then the requested level change will occur after a timeout period between 512 and 1024 sample periods (10.7 ms to 21.3 ms at 48 kHz sample rate). There is a separate zero crossing detector for each channel. ACCR and ACCL bits in the Converter Status Report Byte (#6) give feedback on when a volume control change has taken effect for the right and left channel. This bit goes high when a new setting is loaded and returns low when it has taken effect. Soft Mute/Mute on Zero Input Data Muting can be achieved via hardware or software control. Soft mute can be achieved by lowering the SMUTE pin at which point the output level will ramp down in 0.5 dB steps to a muted state. Upon returning the SMUTE pin high, the output will ramp up to the volume control setting in the Output Attenuator Data Bytes (#3 & #4). "Soft" mute may be disabled through the SOFT bit in the DAC Control Byte (#2). When "soft" mute is defeated, muting occurs on zero crossings or after a time-out period, similar to the volume control changes. Under software control, each output can be independently muted via mute control bits, MUTR and MUTL, in the DAC Control Byte (#2). Soft mute or zero crossing mute will be implemented depending on the state of the SOFT bit in the DAC Control Byte (#2). Muting on consecutive zero input data is also provided where all DAC outputs will mute if
12
they receive between 512 and 1024 consecutive zeros (or -1 code). Detection and muting is done independently for left and right channels. A single non-zero value will immediately unmute the DAC output. This feature is enabled on powerup, and it may be disabled with the MUTC bit in the DAC Control Byte (#2). Master Clock Generation The Master Clock, MCLK, is used to operate the digital filters and the delta-sigma modulator. MCLK must be either 256x, 384x, or 512x the desired Input Sample Rate, Fs. Fs is the frequency at which digital audio samples for each channel are input to the DAC or output from the ADC and is equal to the LRCK frequency. The MCLK to LRCK frequency ratio is detected automatically during the initialization sequence by counting the number of MCLK transitions during a single LRCK period. Internal dividers are then set to generate the proper clocks for the digital filters, delta-sigma modulators and switched-capacitor filter. Table 3 illustrates the standard audio sample rates and the required MCLK frequencies. If MCLK stops for 10s, the CS4222 will enter a power down state until the clock returns. The control port registers will maintain their current settings. It is required to have SCLK and LRCK derived from the master clock.
Fs (kHz)
MCLK (MHz) 256x 384x 512x 32 8.1920 12.2880 16.3840 44.1 11.2896 16.9344 22.5792 48 12.2880 18.4320 24.5760 Table 3. Common Clock Frequencies
DS236PP3
CS4222
FORMAT 0:
(Stand-Alone and Control Port Mode)
LRCK SCLK
SDIN MSB
Left
Right
LSB
MSB
LSB
FORMAT 1:
(Control Port Mode only)
LRCK SCLK SDIN MSB
Left
Right
LSB
MSB
LSB
MSB
FORMAT 2, 3, 4:
Format 2: M = 20 Format 3: M = 18 Format 4: M = 16 (Control Port Mode only)
LRCK SCLK SDIN LSB
Left
Right
MSB M SCLKs
LSB
MSB M SCLKs
LSB
Note: SCLK shown for DSCK = 0. SCLK inverted for DSCK = 1.
Figure 6. Audio DSP Data Input Formats.
FORMAT 0:
(Stand-Alone and Control Port Mode)
LRCK SCLK
SDIN MSB
Left
Right
LSB
MSB
LSB
FORMAT 1:
(Control Port Mode only)
LRCK SCLK
Left
Right
SDIN
MSB
LSB
MSB
LSB
MSB
Note: SCLK shown for DSCK = 0. SCLK inverted for DSCK = 1.
Figure 7. Audio DSP Port Data Output Formats.
DS236PP3
13
CS4222
Serial Audio Data Interface Serial Audio Interface Signals The serial interface clock, SCLK, is used for transmitting and receiving audio data. The active edge of SCLK is chosen by setting the DSCK bit in the DSP Port Mode Byte (#6); the default upon power-up is that data is valid on the rising edge for both input and output. SCLK is an input from an external source and at least 20 SCLK's per half period of LRCK are required for proper operation. The Left/Right clock (LRCK) is used to indicate left and right data and the start of a new sample period. The frequency of LRCK must be equal to the system sample rate, Fs. SDIN is the data input pin which drives a pair of DACs. SDOUT is the output data pin from the ADC's. Serial Audio Interface Formats The serial audio port supports 5 input and 2 output formats, shown in Figures 6 and 7. These formats are chosen through the DSP Port Mode Byte (#5) with the DDO and DDI2/1/0 bits. The data output format is 20 bits and may be left justified or I2S compatible depending on the state of the DDO bit. The input data format is set with the DDI bits to be left or right justified or I2S compatible. In addition, the polarity of the SCLK edge used to clock in/out data from the
CS CCLK CHIP ADDRESS CDIN
0010000
R/W
CS4222 may be set via the DSCK bit in the DSP Port Mode Byte (#5). The default input and output format is I2S compatible. Control Port Interface The control port is used to load all the internal settings. The operation of the control port may be completely asynchronous with the audio sample rate. However, to avoid potential interference problems, the control port pins should remain static if no operation is required. The control port has 2 modes: SPI and I2C(R), with the CS4222 operating as a slave device. If I2C operation is desired, AD0/CS should be tied to VD or DGND. If the CS4222 ever detects a negative transition on AD0/CS after power-up, SPI mode will be selected. SPI Mode In SPI mode, CS is the CS4222 chip select signal, CCLK is the control port bit clock, CDIN is the input data line from the microcontroller and the chip address is 0010000. All signals are inputs and data is clocked in on the rising edge of CCLK. Figure 8 shows the operation of the control port in SPI mode. To write to a register, bring CS low. The first 7 bits on CDIN form the chip address, and must be 0010000. The eighth bit is a read/write indicator (R/W), which must be low to write. Register reading from the CS4222 is
MAP
MSB
DATA
LSB
byte 1 MAP = Memory Address Pointer
Figure 8. Control Port Timing, SPI mode 14
byte n
DS236PP3
CS4222
Note 1 SDA
001000 ADDR AD0 R/W ACK DATA 1-8 ACK DATA 1-8 ACK
SCL Start Stop
Note: If operation is a write, this byte contains the Memory Address Pointer, MAP.
Figure 9. Control Port Timing, I2C(R) Mode
not supported in the SPI mode. The next 8 bits form the Memory Address Pointer (MAP), which is set to the address of the register that is to be updated. The next 8 bits are the data which will be placed into register designated by the MAP. The CS4222 has a MAP auto increment capability, enabled by the INCR bit in the MAP register. If INCR is a zero, then the MAP will stay constant for successive writes. If INCR is set to a 1, then MAP will auto increment after each byte is written, allowing block writes of successive registers. Register reading from the CS4222 is not supported in the SPI mode. I2C (R)Mode In I2C(R) mode, SDA is a bidirectional data line. Data is clocked into and out of the part by the clock, SCL, with the clock to data relationship as shown in Figure 9. There is no CS pin. Pin AD0 forms the partial chip address and should be tied to VD or DGND as desired. The upper 6 bits of the 7 bit address field must be 001000. To communicate with the CS4222 the LSB of the chip address field, which is the first byte sent to the CS4222, should match the setting of the AD0 pin. The eighth bit of the address byte is the R/W bit (high for a read, low for a write). If the operation is a write, the next byte is the Memory Address Pointer which selects the register to be read or written. If the operation is a read, the contents of the register pointed to by the Memory Address Pointer will be output. Setting the auto increment bit in MAP, allows successive
DS236PP3
reads or writes of consecutive registers. Each byte is separated by an acknowledge bit. Use of the I2C bus(R)compatible interface requires a license from Philips. I2C bus(R) is a registered trademark of Philips Semiconductor. Control Port Bit Definitions All registers can be written and read in I2C mode, except the Converter Status Report Byte (#6) and the CLKE and CALP bits in the ADC control byte (#1) which are read only. SPI mode only allows for register writing. See the following bit definition tables for bit assignment information.
15
CS4222
De-Emphasis The CS4222 is capable of digital de-emphasis for 32, 44.1, or 48 kHz sample rates. Implementation of digital de-emphasis requires reconfiguration of the digital filter to maintain the filter response shown in Figure 10 at multiple sample rates. De-emphasis control is achieved with the DEM1/0 pins or through the DEM2-0 bits in the DAC Control Byte (#2). The default state on power-up is de-emphasis controlled via the DEM1/0 pins (DEM2-0 bits=0). DEM1/0 pin control is defined in Table 4.
Power-up/Reset/Power Down/Calibration Upon power up, the user should hold RST=0 for approximately 10 ms. In this state, the control port is reset to its default settings and the part remains in the power down mode. At the end of RST, the device performs an offset calibration which lasts approximately 50 ms after which the device enters normal operation. A calibration may also be initiated via the CAL bit in the ADC Control Byte (#1). The CALP bit in the ADC Control Byte is a read only bit indicating the status of the calibration. Reset/Power Down is achieved by lowering the RST pin causing the part to enter power down. Once RST goes high, the control port is functional and the desired settings should be loaded. The CS4222 will also enter power down mode if the master clock source stops for approximately 10 s or if the LRCK is not synchronous to the master clock. The control port will retain its current settings. Additionally, the PDAD (ADC Control Byte #1) and PDDA (DAC Control Byte #2) bits can be used to power down the ADC's and DAC's independently. If both are set to 1, the CS4222 will power down the entire chip. The control port will retain its current settings.
T1=50s
DEM 1 0 0 1 1
DEM 0 0 1 0 1
De-emphasis 32 kHz 44.1 kHz 48 kHz OFF
Table 4. De-Emphasis filter control
Gain dB
0dB
The CS4222 will mute the analog outputs and enter the power down mode if the supply drops below approximately 4 volts.
T2 = 15s
-10dB
Power Supply, Layout and Grounding
F1 F2 Frequency
Figure 10. De-emphasis Curve.
The CS4222 should be located on the analog ground plane along with associated analog circuitry and should be positioned near the split between ground planes (see Figure 11). Preferably, the device should also have its own power plane. The +5V supply should be connected to the CS4222 via a ferrite bead, positioned closer than 1" to the device. A single connection beDS236PP3
16
CS4222
tween the CS4222 ground and the board ground should be positioned as shown in Figure 11. See the CDB4222 evaluation board data sheet for recommended layout of the decoupling components. ADC and DAC Filter Response Plots Figures 12 through 17 show the overall frequency response, passband ripple and transition band for the CS4222 ADC's and DAC's.
> 1/8"
Digital Ground Plane
+5V Ferrite Bead Ground Connection
CS4222
Analog Ground Plane
Note that the CS4222 is oriented with its digital pins towards the digital end of the board.
CPU & Digital Logic
Codec digital signals
Codec analog signals & components
Figure 11. Suggested Layout Guideline (See CDB4222 Data Sheet) DS236PP3 17
CS4222
Figure 12. ADC Filter Response.
Figure 15. DAC Frequency Response.
Figure 13. ADC Passband Ripple.
Figure 16. DAC Passband Ripple.
Figure 14. ADC Transition Band. 18
Figure 17. DAC Transition Band. DS236PP3
CS4222
Memory Address Pointer (MAP)
B7
INCR
DAC Control Byte (2)
B1 B0 B7 PDDA B6 B5 B4 B3 B2
0
B6
0
B5
0
B4
0
B3
0
B2
B1
B0
MAP2 MAP1 MAP0
PDDA MUTC MUTR MUTL SOFT
RMP1 RMP0
MAP2-MAP0 Register Pointer INCR Auto Increment Control Bit 0 - No auto increment 1 - Auto increment on
Power Down DAC 0 - Normal 1 - Power down Controls mute on consecutive zeros function 0 - 512 consecutive zeros will mute DAC 1 - DAC output will not mute on zeros.
MUTC
This register defaults to 00h.
Reserved Byte (0) This byte is reserved for internal use and must be set to 00h for normal operation.
This register defaults to 00h.
ADC Control Byte (1)
B7 PDAD B6 B5 B4 B3 B2 B1 B0
PDAD HPDR HPDL ADMR ADML CAL CALP CLKE
MUTR-MUTL Mute control bits 0 - Normal output level 1 - Selected DAC output muted SOFT Soft Mute Control 0 - Volume control changes, muting and mute-on-zeros occur with "ramp" 1 - Volume control changes, muting and mute-on-zeros occur on zero crossings RMP1-0 Soft Volume 0.5 dB step rate 0 - 1 step per 8 LRCK's 1 - 1 step per 4 LRCK's 2 - 1 step per 16 LRCK's 3 - 1 step per 32 LRCK's
Power Down ADC 0 - Normal 1 - Power down
HPDR-HPDL High pass filter defeat, right and left 0 - High pass filters active 1 - High pass filters defeated ADMR-ADML ADC Muting, right and left 0 - Normal 1 - Output muted CAL Calibration control bit 0 - Normal operation 1 - Rising edge initiates calibration
This register defaults to 00h.
The following bits are read only: CALP Calibration status 0 - Calibration done 1 - Calibration in progress CLKE Clocking Error 0 - No error 1 - error
This register defaults to 00h.
DS236PP3
19
CS4222
Output Attenuator Data Byte (3, 4)
B7
ATT7
Converter Status Report Byte (Read Only) (6)
B1
ATT1
B6
ATT6
B5
ATT5
B4
ATT4
B3
ATT3
B2
ATT2
B0
ATT0
B7
B6
B5
B4
B3
B2
LVL2
B1
LVL2
B0
LVL0
ACCR ACCL LVR2 LVR1 LVR0
ATT7-ATT0
Sets attenuator level 0 - No attenuation 227 - 113.5 dB attenuation >227 - DAC muted ATT0 represents 0.5 dB of attenuation
ACCR-ACCL
Acceptance bit 0 - ATT7-0 has been accepted 1 - New setting waiting for zero crossing
This register defaults to 00h.
DSP Port Mode Byte (5)
B7 DEM2-0 B6 B5 B4 B3 B2 B1 B0
DEM2 DEM1 DEM0 DSCK DDO DDF2 DDF1 DDF0
LVL2-0,LVR2-0 Left and Right ADC output level 0 - Normal output levels 1 - -6 dB level 2 - -5 dB level 3 - -4 dB level 4 - -3 dB level 5 - -2 dB level 6 - -1 dB level 7 - Clipping LVL2-0 and LVR2-0 bits are 'sticky'. They constantly monitor the ADC output for the peak levels and hold the maximum output. They are reset to 0 when read. This register is read only.
Selects de-emphasis control source 0 - De-emphasis controlled by pins 1 - 44.1 kHz de-emphasis setting 2 - 48 kHz de-emphasis setting 3 - 32 kHz de-emphasis setting 4 - De-emphasis disabled 5 - Not used 6 - Not used 7 - Not used Set the polarity of clocking data 0 - Data valid on rising edge of SCLK 1 - Data valid on falling edge of SCLK Data output format 0 - I2S compatible 1 - Left justified Data input format 0 - I2S compatible 1 - Left justified 2 - Right justified, 20-bit 3 - Right justified, 18-bit 4 - Right justified, 16-bit 5 - Not used 6 - Not used 7 - Not used
DSCK
DDO
DDI2-DDI0
This register defaults to 00h.
20
DS236PP3
CS4222
PIN DESCRIPTIONS
NC SMUTE MCLK LRCK SCLK VD DGND SDOUT SDIN SCL/CCLK SDA/CDIN AD0/CS DEM0 NC
1 2 3 4 5 6 7 8 9 10 11 12 13 14
28 27 26 25 24 23 22 21 20 19 18 17 16 15
NC RST AOUTLAOUTL+ AOUTR+ AOUTRAGND VA AINL+ AINLDEM1 AINR+ AINRNC
Power Supply VA - Positive Analog Power, Pin 21. Positive analog supply. Nominally +5 volts. VD - Positive Digital Power, Pin 6. Positive supply for the digital section. Nominally +5 volts. AGND - Analog Ground, Pin 22. Analog ground reference. DGND - Digital Ground, Pin 7. Digital ground for the digital section. Analog Inputs AINR-, AINR+ - Differential Right Channel Analog Input, Pins 16 and 17. Analog input connections of the right channel differential inputs. Typically 2 Vrms differential (1 Vrms for each input pin) for a full-scale analog input signal. AINL-, AINL+ - Differential Left Channel Analog Input, Pins 19 and 20. Analog input connections of the left channel differential inputs. Typically 2 Vrms differential (1 Vrms for each input pin) for a full-scale analog input signal.
DS236PP3
21
CS4222
Analog Outputs AOUTR-, AOUTR+ - Differential Right Channel Analog Outputs, Pins 23 and 24. Analog output connections for the Right channel differential outputs. Nominally 2 Vrms (differential) for full-scale digital input signal. AOUTL-, AOUTL+ - Differential Left Channel Analog Outputs, Pins 25 and 26. Analog output connections for the Left channel differential outputs. Nominally 2 Vrms (differential) for full-scale digital input signal. Digital Inputs MCLK - Master Clock, Pin 3. Clock source for the delta-sigma modulator sampling and digital filters. The frequency of this clock must be either 256x, 384x, or 512x Fs. LRCK - Left/Right Clock, Pin 4. LRCK determines which channel, left or right, is to be input/output on SDIN/SDOUT. Although the outputs for each ADC channel are transmitted at different times, Left/Right pairs represent simultaneously sampled analog inputs. LRCK is an input clock whose frequency must be equal to Fs. SCLK - Serial Data Clock, Pin 5. Clocks the individual bits of the serial data out from SDOUT and in from SDIN. SDIN - Serial Data Input, Pin 9. Two's complement MSB-first serial data of either 16, 18, or 20 bits is input on this pin. The data is clocked into the CS4222 via the SCLK clock and the channel is determined by the LRCK clock. The default interface format on power-up is an I2S compatible 20-bit interface. This may be changed by writing the control port (DSP Port Mode Byte #5). DEM1, DEM0 - De-Emphasis Select, Pins 18 and 13. Controls the activation of the standard 50/15 s de-emphasis filter. 32, 44.1, or 48 kHz sample rate selection defined in Table 4. SMUTE - Soft Mute, Pin 2. SMUTE low activates a muting function for both the left and right channel D/A converter outputs. Soft muting is achieved by ramping down the volume in 0.5 dB steps until achieving mute if SOFT bit (DAC Control Byte #2) is set to 0 (default). Digital Outputs SDOUT - Serial Data Output, Pin 8. Two's complement MSB-first serial data of 20 bits is output on this pin. The data is clocked out via the SCLK clock and the channel is determined by LRCK.
22
DS236PP3
CS4222
Control Port Signals SCL/CCLK - Serial Control Interface Clock, Pin 10. SCL/CCLK is the serial control interface clock and is used to clock control bits into and out of the CS4222 This pin should be tied to DGND in stand-alone mode. AD0/CS - Address Bit/Control Port Chip Select, Pin 12. In I2C(R) mode, AD0 is a chip address bit. In SPI mode, CS is used to enable the control port interface on the CS4222. The CS4222 will enter SPI mode if a negative transition is ever seen on this pin after power up. This pin should be tied to DGND in stand-alone mode. SDA/CDIN - Serial Control Data In, Pin 11. SDA/CDIN is the input data line for the control port interface. This pin should be tied to DGND in stand-alone mode. Miscellaneous Pins RST - Reset, Pin 27. When low, the CS4222 enters a low power mode and all internal states are reset, including the control port. When high, the control port becomes operational and normal operation will occur. NC - No Connect, Pins 1, 14, 15 and 28 These pins are not connected internally and should be tied to DGND to minimize noise coupling. PARAMETER DEFINITIONS Dynamic Range The ratio of the full scale rms value of the signal to the rms sum of all other spectral components over the specified bandwidth. Dynamic range is a signal-to-noise measurement over the specified bandwidth made with a -60dBFS signal. 60dB is then added to the resulting measurement to refer the measurement to full scale. This technique ensures that the distortion components are below the noise level and do not affect the measurement. This measurement technique has been accepted by the Audio Engineering Society, AES17-1991, and the Electronic Industries Association of Japan, EIAJ CP-307. Total Harmonic Distortion + Noise The ratio of the rms value of the signal to the rms sum of all other spectral components over the specified bandwidth (typically 20Hz to 20kHz), including distortion components. Expressed in decibels. ADCs are measured at -1 dBFS as suggested in AES17-1991 Annex A and DACs are measured at 0 dBFS.
DS236PP3
23
CS4222
Idle Channel Noise / Signal-to-Noise-Ratio The ratio of the rms analog output level with 1kHz full scale digital input to the rms analog output level with all zeros into the digital input. Measured A-weighted over a 10Hz to 20kHz bandwidth. Units in decibels. This specification has been standardized by the Audio Engineering Society, AES17-1991, and referred to as Idle Channel Noise. This specification has also been standardized by the Electronic Industries Association of Japan, EIAJ CP-307, and referred to as Signal-to-Noise-Ratio. Total Harmonic Distortion (THD) THD is the ratio of the test signal amplitude to the rms sum of all the in-band harmonics of the test signal. Units in decibels. Interchannel Isolation A measure of crosstalk between channels. Measured for each channel at the converter's output with no signal to the input under test and a full-scale signal applied to the other channel. Units in decibels. Frequency Response A measure of the amplitude response variation from 20Hz to 20kHz relative to the amplitude response at 1kHz. Units in decibels. Interchannel Gain Mismatch For the ADCs, the difference in input voltage that generates the full scale code for each channel. For the DACs, the difference in output voltages for each channel with a full scale digital input. Units are in decibels. Gain Error The deviation from the nominal full scale output for a full scale input. Gain Drift The change in gain value with temperature. Units in ppm/C. Offset Error For the ADCs, the deviation in LSB's of the output from mid-scale with the selected inputs tied to a common potential. For the DAC's, the differential output voltage with mid-scale input code. Units are in volts.
24
DS236PP3
CS4222
PACKAGE DIMENSIONS
N
E
SSOP Package Dimensions
123
TOP VIEW
D1 A2 A1 b2 Seating Plane A
E 11
e
L
END VIEW
SIDE VIEW
MILLIMETERS DIM MIN NOM MAX MIN INCHES NOM MAX Note
Notes: 1. "D" and "E 1 " are reference datums and do not include mold flash or protrusions, but do include mold mismatch and are measured at the parting line, mold flash or protrusions shall not exceed 0.20mm per side. 2. Dimension b does not include dambar protrusion/intrusion. Allowable dambar protrusion shall be 0.13mm total in excess of b dimension at maximum material condition. Dambar intrusion shall not reduce dimension b by more than 0.07mm at least material condition. 3. These dimensions apply to the flat section of the lead between 0.10 and 0.25mm from lead tips.
A A1 A2 b
0.05 1.62
0.22 7.40
0.15 1.75
0.30 7.80
2.13 0.25 1.88
0.38 8.20
0.002
0.064
-
0.084
0.006 0.010
0.070 0.074
0.009 0.291
0.197
0.012 0.015 2, 3 1 1 0.307 0.323
0.209 0.220
D
E E1 e L N
see other table 5.00 0.61
0.63
see other table
5.30 0.65
0.90
5.60 0.69
1.03
0.024 0.025 0
D
0.026 0.027 0.035 0.040 4 8
N 20 28
see other table 0 4 8
see other table
MILLIMETERS
MIN NOM MAX MIN
INCHES
NOM MAX Note
6.90 9.90
7.20
7.50
0.272 0.283 0.295
1 1
10.20 10.50 0.390 0.402 0.413
DS236PP3
25


▲Up To Search▲   

 
Price & Availability of CS4222

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X